package com.example.tse.rbhttpservice.service.home.model;

import com.example.tse.rbhttpservice.service.RudderResponse;

import java.util.ArrayList;
import java.util.List;


//import com.rbyair.services.home.model.HomeGetSecond;
/**
 * 获取秒杀
 * @author wliu
 * edit tse
 */
public class HomeGetSecondResponse extends RudderResponse{

    private List<HomeGetSecondBody> getSecond = new ArrayList<HomeGetSecondBody>();


    /**
     * @return getSecond
     */
    public List<HomeGetSecondBody> getGetSecond() {
        return this.getSecond;
    }

    /**
     * @return getSecond
     */
    public void setGetSecond(List<HomeGetSecondBody> getSecond) {
        this.getSecond = getSecond;
    }
/**
 methodName    GetSecond
 type          List<HomeGetSecond>
 name          getSecond
 defaultType   new ArrayList<HomeGetSecond>()
 */

/**


 private static void filterFor(HomeGetSecondBody home) {
 if (home.getSecondId() == null) {
 home.setSecondId("");
 }
 if (home.getName() == null) {
 home.setName("");
 }
 if (home.getMainImage() == null) {
 home.setMainImage("");
 }
 if (home.getPrice() == null) {
 home.setPrice("");
 }
 if (home.getMktprice() == null) {
 home.setMktprice("");
 }
 if (home.getProductId() == null) {
 home.setProductId("");
 }
 if (home.getBeginTime() == null) {
 home.setBeginTime("");
 }
 if (home.getEndTime() == null) {
 home.setEndTime("");
 }
 if (home.getBuyerNum() == null) {
 home.setBuyerNum("");
 }
 if (home.getStoreNum() == null) {
 home.setStoreNum("");
 }
 if (home.getCurrentTime() == null) {
 home.setCurrentTime("");
 }
 if (home.getHasNoticed() == null) {
 home.setHasNoticed("");
 }
 }

 private static void filterFor(HomeGetSecond home) {
 if (home.getBody() == null) {
 home.setBody(new ArrayList<HomeGetSecondBody>());
 } else {
 for (HomeGetSecondBody item : home.getBody()) {
 filterFor(item);
 }
 }
 }

 public static void filter(HomeGetSecondResponse home) {
 if (home.getGetSecond() == null) {
 home.setGetSecond(new ArrayList<HomeGetSecond>());
 } else {
 for (HomeGetSecond item : home.getGetSecond()) {
 filterFor(item);
 }
 }
 }

 */

}
